//
//  PreAuthItemCell.m
//  PPDL
//
//  Created by 王洋 on 2019/8/26.
//  Copyright © 2019 王洋. All rights reserved.
//

#import "PreAuthItemCell.h"

@interface PreAuthItemCell ()

@property (weak, nonatomic) IBOutlet UILabel *itemTitleLab;

@property (weak, nonatomic) IBOutlet UIButton *itemSelectBtn;


@end

@implementation PreAuthItemCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)fillCellWithModel:(PreAuthModel *)model {
    
    self.itemTitleLab.text = model.itemTitle;
    
    if (model.isSelect) {
        [self.itemSelectBtn setImage:[UIImage imageNamed:@"admire_bg"] forState:UIControlStateNormal];
    } else {
        [self.itemSelectBtn setImage:[UIImage imageNamed:@"empty_bg"] forState:UIControlStateNormal];
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
